package com.henu.art.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.henu.art.entity.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherService extends IService<Teacher> {


    List<Teacher> selectById(int id);

    int insert(Teacher teacher);//返回的是affect 数据库的行数

    int delete(int id);

    boolean updateById(@Param("et") Teacher teacher);

    IPage<Teacher> getTeacherPage(int pageNum, int pageSize);



}
